package com.controller;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
public class FirstController {
    @RequestMapping("/firstController")
    public String sayHello() {
        System.out.println("访问到FirstController!");
        return "success";//WEB-INF/pages/success.jsp

    }
}
